package org.hepeng.hope.entity

import java.io.Serializable
import javax.persistence.Embeddable
import javax.persistence.EmbeddedId
import javax.persistence.Entity
import javax.persistence.Index
import javax.persistence.Table

const val AUTHORITY_UI_TABLE_NAME = "authority_ui"

@Entity
@Table(name = AUTHORITY_UI_TABLE_NAME , indexes = [Index(columnList = "authorityId,uiId")])
internal data class AuthorityUIResources(@EmbeddedId var pk: AuthorityUIResourcesPK
) : Serializable


@Embeddable
internal data class AuthorityUIResourcesPK(var authorityId: Long , var uiId: Long) : Serializable